import request from '@/utils/request'
export default {
    //3、新增数据字典
    save(dict){
        return request({
            url:`/admin/core/dict`,
            method:'POST',
            data: dict
        })
    },
    //2、根据id删除数据字典
    deleteById(id){
        return request({
            url:`/admin/core/dict/${id}`,
            method:'DELETE'
        })
    },
    //1、根据数据字典父id查询子集合
    getByParentId(pId){
        return request({
            url:`/admin/core/dict/dicts/${pId}`,
            method:'GET'
        })
    }
}